//
//  XTLoopScrollView.h
//  XTLoopScroll
//
//  Created by TuTu on 15/10/30.
//  Copyright © 2015年 teason. All rights reserved.
//

#define APPFRAME                        [UIScreen mainScreen].bounds


#import <UIKit/UIKit.h>
#import <UIImageView+WebCache.h>
#import "customPageControl.h"

@class XTLoopScrollView;

@protocol XTLoopScrollViewDelegate <NSObject>
- (void)tapingCurrentIndex:(NSInteger)currentIndex andWho:(XTLoopScrollView *)XTLoopScroll;
@end

@interface XTLoopScrollView : UIView

@property (nonatomic,weak) id <XTLoopScrollViewDelegate> delegate;
@property (nonatomic) UIColor *color_pageControl;
@property (nonatomic) UIColor *color_currentPageControl;
@property (nonatomic, strong) UIPageControl *pageControl;
@property (nonatomic,assign)  BOOL isOkYuanDian;//显示顶部点点，还是底部

@property (nonatomic,strong)  NSArray *aryInfoData;//数据


@property (nonatomic, strong) customPageControl *customPage;

- (instancetype)initWithFrame:(CGRect)frame
                 andImageList:(NSArray *)imglist
                      canLoop:(BOOL)canLoop
                     duration:(NSInteger)duration;

- (void)startWithFrame:(CGRect)frame
          andImageList:(NSArray *)imglist
               canLoop:(BOOL)canLoop
              duration:(NSInteger)duration
          isOKYuandian:(BOOL)isss;

@end
